<?php

/**
 * 二级栏目
 */
Route::get('entity/column/subcolumns', ['as'=> 'entity.column.subcolumns.index', 'uses' => 'Entity\Column\SubcolumnController@index']);
Route::post('entity/column/subcolumns', ['as'=> 'entity.column.subcolumns.store', 'uses' => 'Entity\Column\SubcolumnController@store']);
Route::get('entity/column/subcolumns/create', ['as'=> 'entity.column.subcolumns.create', 'uses' => 'Entity\Column\SubcolumnController@create']);
Route::put('entity/column/subcolumns/{subcolumns}', ['as'=> 'entity.column.subcolumns.update', 'uses' => 'Entity\Column\SubcolumnController@update']);
Route::patch('entity/column/subcolumns/{subcolumns}', ['as'=> 'entity.column.subcolumns.update', 'uses' => 'Entity\Column\SubcolumnController@update']);
Route::delete('entity/column/subcolumns/{subcolumns}', ['as'=> 'entity.column.subcolumns.destroy', 'uses' => 'Entity\Column\SubcolumnController@destroy']);
Route::get('entity/column/subcolumns/{subcolumns}', ['as'=> 'entity.column.subcolumns.show', 'uses' => 'Entity\Column\SubcolumnController@show']);
Route::get('entity/column/subcolumns/{subcolumns}/edit', ['as'=> 'entity.column.subcolumns.edit', 'uses' => 'Entity\Column\SubcolumnController@edit']);

/**
 * 二级栏目-点播媒资
 */
// 编辑媒资界面
Route::get('entity/column/subcolumns/{subcolumns}/edit/asset', ['as'=> 'entity.column.subcolumns.edit_asset', 'uses' => 'Entity\Column\SubcolumnController@editAsset']);
// 媒资数据
Route::post('entity/column/subcolumns/asset/data', ['as'=> 'entity.column.subcolumns.vasset_data', 'uses' => 'Entity\Column\SubcolumnController@vassetiData']);
// 已选的媒资数据
Route::post('entity/column/subcolumns/asset/selected', ['as'=> 'entity.column.subcolumns.selected_vasseti', 'uses' => 'Entity\Column\SubcolumnController@selectedVasseti']);
// 添加单个媒资|添加多个媒资
Route::post('entity/column/subcolumns/asset/add', ['as'=> 'entity.column.subcolumns.add_asset', 'uses' => 'Entity\Column\SubcolumnController@addVasseti']);
// 删除单个媒资|删除多个媒资
Route::post('entity/column/subcolumns/asset/delete', ['as'=> 'entity.column.subcolumns.deltete_asset', 'uses' => 'Entity\Column\SubcolumnController@deleteVasseti']);

/**
 * 二级栏目-直播媒资
 */
// 编辑媒资界面
Route::get('entity/column/subcolumns/{subcolumns}/edit/vchan', ['as'=> 'entity.column.subcolumns.edit_vchan', 'uses' => 'Entity\Column\SubcolumnController@editVchan']);
// 媒资数据
Route::post('entity/column/subcolumns/vchan/data', ['as'=> 'entity.column.subcolumns.vchan_data', 'uses' => 'Entity\Column\SubcolumnController@vchanData']);
// 已选的媒资数据
Route::post('entity/column/subcolumns/vchan/selected', ['as'=> 'entity.column.subcolumns.selected_vchan', 'uses' => 'Entity\Column\SubcolumnController@selectedVchan']);
// 添加单个媒资|添加多个媒资
Route::post('entity/column/subcolumns/vchan/add', ['as'=> 'entity.column.subcolumns.add_vchan', 'uses' => 'Entity\Column\SubcolumnController@addVchan']);
// 删除单个媒资|删除多个媒资
Route::post('entity/column/subcolumns/vchan/delete', ['as'=> 'entity.column.subcolumns.deltete_vchan', 'uses' => 'Entity\Column\SubcolumnController@deleteVchan']);


//内容选择列表
Route::post('entity/column/subcolumns/content/query', ['as'=> 'entity.column.subcolumns.content_query', 'uses' => 'Entity\Column\SubcolumnController@allContent']);
/**
 * 二级栏目上线, 下线, 发布
 */
// 二级栏目全部上线
Route::get('entity/column/subcolumns/all_up/view', [
    'as'=> 'entity.column.subcolumns.all_up', 
    'uses' => 'Entity\Column\SubcolumnController@allUp'
]);
// 二级栏目全部下线
Route::get('entity/column/subcolumns/all_down/view', [
    'as'=> 'entity.column.subcolumns.all_down', 
    'uses' => 'Entity\Column\SubcolumnController@allDown'
]);
// 二级栏目全部上线发布
Route::get('entity/column/subcolumns/publish/view', [
    'as'=> 'entity.column.subcolumns.publish', 
    'uses' => 'Entity\Column\SubcolumnController@publish'
]);
// 二级栏目全部下线发布
Route::get('entity/column/subcolumns/publish_down/view', [
    'as'=> 'entity.column.subcolumns.publish_down', 
    'uses' => 'Entity\Column\SubcolumnController@publishDown'
]);
// 单个,批量上线
Route::post('entity/column/subcolumns/up/view', [
    'as'=> 'entity.column.subcolumns.up', 
    'uses' => 'Entity\Column\SubcolumnController@batchModerate'
]);
// 单个,批量下线
Route::post('entity/column/subcolumns/down/view', [
    'as'=> 'entity.column.subcolumns.down', 
    'uses' => 'Entity\Column\SubcolumnController@batchModerate'
]);
// 单个,批量发布
Route::post('entity/column/subcolumns/publish_one/view', [
    'as'=> 'entity.column.subcolumns.publish_one', 
    'uses' => 'Entity\Column\SubcolumnController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/column/subcolumns/publish_down_one/view', [
    'as'=> 'entity.column.subcolumns.publish_down_one', 
    'uses' => 'Entity\Column\SubcolumnController@batchModerate'
]);
// 查询进度
Route::get('entity/column/subcolumns/progress/view', [
    'as'=> 'entity.column.subcolumns.progress', 
    'uses' => 'Entity\Column\SubcolumnController@queryProgress'
]);